package app;

import javax.swing.JFrame;
import javax.swing.JButton;

public class BotoneraTarjeta extends JFrame {

	private static final long serialVersionUID = 1L;
	private JButton ingresarTarjetaValida = null;
	private JButton ingresarTarjetaNoValida = null;
	
	/**
	 * This is the default constructor
	 */
	public BotoneraTarjeta() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(491, 297);
		this.getContentPane().setLayout(null);
		this.setTitle("Botonera MV");
		this.add(getIngresarTarjetaValida());
		this.add(getIngresarTarjetaNoValida());
	}

	/**
	 * This method initializes ingresarTarjetaValida	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getIngresarTarjetaValida() {
		if (ingresarTarjetaValida == null) {
			ingresarTarjetaValida = new JButton("Ingresar Tarjeta Valida");
			ingresarTarjetaValida.setBounds(10, 10, 200, 22);
			ingresarTarjetaValida.addMouseListener(new java.awt.event.MouseAdapter() {
				public void mouseClicked(java.awt.event.MouseEvent e) {
					
					ingresarTarjetaValida.setEnabled(false);
				}
			});
		}
		return ingresarTarjetaValida;
	}

	/**
	 * This method initializes ingresarTarjetaNoValida	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getIngresarTarjetaNoValida() {
		if (ingresarTarjetaNoValida == null) {
			ingresarTarjetaNoValida = new JButton("Ingresar Tarjeta No Valida");
			ingresarTarjetaNoValida.setBounds(10, 50, 200, 22);
			ingresarTarjetaNoValida.addMouseListener(new java.awt.event.MouseAdapter() {
				public void mouseClicked(java.awt.event.MouseEvent e) {

					ingresarTarjetaNoValida.setEnabled(false);
				}
			});
		}
		return ingresarTarjetaNoValida;
	}
}